import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'Home',
      component: () => import('@/views/Home.vue')
    },
    {
      path: '/hottest-ranking',
      name: 'HottestRanking',
      component: () => import('@/views/HottestRanking.vue')
    },
    {
      path: '/search',
      name: 'Search',
      component: () => import('@/views/Search.vue')
    },
    {
      path: '/about',
      name: 'About',
      component: () => import('@/views/About.vue')
    },
    {
      path: '/classification-query',
      name: 'ClassificationQuery',
      component: () => import('@/views/ClassificationQuery.vue')
    },
    {
      path: '/wallpaper/:id',
      name: 'WallpaperDetail',
      component: () => import('@/views/WallpaperDetail.vue')
    },
    {
      path: '/visitorLogin',
      name: 'VisitorLogin',
      component: () => import('@/views/logoPage/VisitorLogin.vue'),
      meta: { hideNavbar: true }
    },
    {
      path: '/visitorLoginHome',
      name: 'VisitorLoginHome',
      component: () => import('@/views/logoPage/VisitorLoginHome.vue'),
      meta: { hideNavbar: true }
    },

  ]
})

export default router